package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 内容分类管理对象 content_categories
 * 
 * @author whitedeer
 * @date 2024-08-15
 */
public class ContentCategories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类唯一标识符
 */
    private Long categoryId;

    /** 分类名称
 */
    @Excel(name = "分类名称 ")
    private String categoryName;

    /** 分类描述
 */
    @Excel(name = "分类描述 ")
    private String categoryDescription;

    /** 分类创建时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分类创建时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date categoryCreatedAt;

    /** 分类更新时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分类更新时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date categoryUpdatedAt;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setCategoryDescription(String categoryDescription) 
    {
        this.categoryDescription = categoryDescription;
    }

    public String getCategoryDescription() 
    {
        return categoryDescription;
    }
    public void setCategoryCreatedAt(Date categoryCreatedAt) 
    {
        this.categoryCreatedAt = categoryCreatedAt;
    }

    public Date getCategoryCreatedAt() 
    {
        return categoryCreatedAt;
    }
    public void setCategoryUpdatedAt(Date categoryUpdatedAt) 
    {
        this.categoryUpdatedAt = categoryUpdatedAt;
    }

    public Date getCategoryUpdatedAt() 
    {
        return categoryUpdatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("categoryDescription", getCategoryDescription())
            .append("categoryCreatedAt", getCategoryCreatedAt())
            .append("categoryUpdatedAt", getCategoryUpdatedAt())
            .toString();
    }
}
